package BeheerFysiotherapeuten.View;

import java.awt.event.ActionListener;

public class TherapiePopup extends javax.swing.JFrame {
	 private javax.swing.JTextField doelgroepfield;
	    private javax.swing.JTextField duurfield;
	    private javax.swing.JLabel jLabel1;
	    private javax.swing.JLabel jLabel2;
	    private javax.swing.JLabel jLabel3;
	    private javax.swing.JLabel jLabel4;
	    private javax.swing.JLabel jLabel5;
	    private javax.swing.JLabel jLabel6;
	    private javax.swing.JLabel jLabel7;
	    private javax.swing.JLabel jLabel8;
	    private javax.swing.JLabel therapienaam;
	    private javax.swing.JTextField naamfield;
	    private javax.swing.JButton nieuwannuleer;
	    private javax.swing.JButton nieuwopslaan;
	    private javax.swing.JTextField omschrijvingfield;
	    private javax.swing.JTextField prijsfield;
	    private javax.swing.JTextField soortfield;
	    private javax.swing.JComboBox therapeutenlijst;
	    private javax.swing.JButton wijzigannuleer;
	    private javax.swing.JButton wijzigopslaan;
	    private javax.swing.JButton verwijderja;
		private javax.swing.JButton verwijdernee;
		private javax.swing.JTextField behandelcodefield;
		 
		private String[] therapeuten;
	    public TherapiePopup(String welke,String[] therapeuten){
	    	this.therapeuten = therapeuten;
	    	if (welke == "Nieuw") {
				initComponentsniew();

			} else if (welke == "Wijzig") {
				initComponentswijzigen();

			}

		}

		public TherapiePopup() {
			initComponentsverwijder();

		}
	    	
	    
	
		
    private void initComponentsniew() {

    	 nieuwopslaan = new javax.swing.JButton();
         nieuwannuleer = new javax.swing.JButton();
         naamfield = new javax.swing.JTextField();
         soortfield = new javax.swing.JTextField();
         duurfield = new javax.swing.JTextField();
         doelgroepfield = new javax.swing.JTextField();
         prijsfield = new javax.swing.JTextField();
         omschrijvingfield = new javax.swing.JTextField();
         therapeutenlijst = new javax.swing.JComboBox();
         jLabel1 = new javax.swing.JLabel();
         jLabel2 = new javax.swing.JLabel();
         jLabel3 = new javax.swing.JLabel();
         jLabel4 = new javax.swing.JLabel();
         jLabel5 = new javax.swing.JLabel();
         jLabel6 = new javax.swing.JLabel();
         jLabel7 = new javax.swing.JLabel();
         behandelcodefield = new javax.swing.JTextField();
         jLabel8 = new javax.swing.JLabel();

         setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);

         nieuwopslaan.setText("Opslaan");
 		nieuwopslaan.setActionCommand("nieuwopslaan");

 		nieuwannuleer.setText("annuleer");
 		nieuwannuleer.setActionCommand("nieuwannuleer");

         naamfield.setText("");

         soortfield.setText("");
      
         duurfield.setText("");
         
       

         doelgroepfield.setText("");

         prijsfield.setText("");

         omschrijvingfield.setText("");

         therapeutenlijst.setModel(new javax.swing.DefaultComboBoxModel(therapeuten));
         jLabel1.setText("Naam");

         jLabel2.setText("Soort");

         jLabel3.setText("Duur(min)");

         jLabel4.setText("Doelgroep");

         jLabel5.setText("Prijs(euro)");

         jLabel6.setText("Korte omschrijving");

         jLabel7.setText("Therapeut");

         behandelcodefield.setText("");

         jLabel8.setText("Behandelcode");

         javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
         getContentPane().setLayout(layout);
         layout.setHorizontalGroup(
             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
             .addGroup(layout.createSequentialGroup()
                 .addGap(52, 52, 52)
                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                     .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                         .addComponent(jLabel8, javax.swing.GroupLayout.DEFAULT_SIZE, 77, Short.MAX_VALUE)
                         .addGap(262, 262, 262))
                     .addGroup(layout.createSequentialGroup()
                         .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                             .addGroup(layout.createSequentialGroup()
                                 .addComponent(nieuwopslaan)
                                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 188, javax.swing.GroupLayout.PREFERRED_SIZE))
                             .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                 .addGroup(layout.createSequentialGroup()
                                     .addComponent(jLabel6)
                                     .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 220, javax.swing.GroupLayout.PREFERRED_SIZE))
                                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                     .addGroup(layout.createSequentialGroup()
                                         .addComponent(jLabel5)
                                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 220, javax.swing.GroupLayout.PREFERRED_SIZE))
                                     .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                         .addGroup(layout.createSequentialGroup()
                                             .addComponent(jLabel4)
                                             .addGap(103, 103, 103)
                                             .addComponent(doelgroepfield, javax.swing.GroupLayout.DEFAULT_SIZE, 117, Short.MAX_VALUE))
                                         .addGroup(layout.createSequentialGroup()
                                             .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                 .addComponent(jLabel1)
                                                 .addComponent(jLabel2)
                                                 .addComponent(jLabel3))
                                             .addGap(103, 103, 103)
                                             .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                 .addComponent(duurfield, javax.swing.GroupLayout.DEFAULT_SIZE, 117, Short.MAX_VALUE)
                                                 .addComponent(soortfield, javax.swing.GroupLayout.DEFAULT_SIZE, 117, Short.MAX_VALUE)
                                                 .addComponent(naamfield, javax.swing.GroupLayout.DEFAULT_SIZE, 117, Short.MAX_VALUE)
                                                 .addComponent(behandelcodefield, javax.swing.GroupLayout.DEFAULT_SIZE, 117, Short.MAX_VALUE)))
                                         .addGroup(layout.createSequentialGroup()
                                             .addComponent(jLabel7)
                                             .addGap(103, 103, 103)
                                             .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                 .addComponent(prijsfield, javax.swing.GroupLayout.DEFAULT_SIZE, 117, Short.MAX_VALUE)
                                                 .addComponent(therapeutenlijst, 0, 117, Short.MAX_VALUE)
                                                 .addComponent(omschrijvingfield, javax.swing.GroupLayout.DEFAULT_SIZE, 117, Short.MAX_VALUE)
                                                 .addComponent(nieuwannuleer, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 117, Short.MAX_VALUE)))))))
                         .addGap(42, 42, 42))))
         );
         layout.setVerticalGroup(
             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
             .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                 .addContainerGap(43, Short.MAX_VALUE)
                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                     .addComponent(jLabel8)
                     .addComponent(behandelcodefield, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                 .addGap(18, 18, 18)
                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                     .addComponent(jLabel1)
                     .addComponent(naamfield, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                 .addGap(18, 18, 18)
                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                     .addComponent(jLabel2)
                     .addComponent(soortfield, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                 .addGap(18, 18, 18)
                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                     .addComponent(jLabel3)
                     .addComponent(duurfield, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                 .addGap(18, 18, 18)
                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                     .addComponent(jLabel4)
                     .addComponent(doelgroepfield, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                 .addGap(18, 18, 18)
                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                     .addComponent(jLabel7)
                     .addComponent(therapeutenlijst, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                 .addGap(18, 18, 18)
                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                     .addComponent(jLabel5)
                     .addComponent(prijsfield, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                 .addGap(18, 18, 18)
                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                     .addComponent(jLabel6)
                     .addComponent(omschrijvingfield, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                 .addGap(26, 26, 26)
                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                     .addComponent(nieuwopslaan)
                     .addComponent(nieuwannuleer))
                 .addGap(46, 46, 46))
         );

         pack();
     }
    
    
    
    private void initComponentswijzigen() {
        wijzigopslaan = new javax.swing.JButton();
        wijzigannuleer = new javax.swing.JButton();
        naamfield = new javax.swing.JTextField();
        soortfield = new javax.swing.JTextField();
        duurfield = new javax.swing.JTextField();
        doelgroepfield = new javax.swing.JTextField();
        prijsfield = new javax.swing.JTextField();
        omschrijvingfield = new javax.swing.JTextField();
        therapeutenlijst = new javax.swing.JComboBox();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        behandelcodefield = new javax.swing.JTextField();
        jLabel8 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);

        wijzigopslaan.setText("Wijzigen");
		wijzigopslaan.setActionCommand("wijzigopslaan");

		wijzigannuleer.setText("annuleer");
		wijzigannuleer.setActionCommand("wijzigannuleer");
        naamfield.setText("");

        soortfield.setText("");
      

        duurfield.setText("");
      

        doelgroepfield.setText("");

        prijsfield.setText("");

        omschrijvingfield.setText("");

        therapeutenlijst.setModel(new javax.swing.DefaultComboBoxModel(therapeuten));
        jLabel1.setText("Naam");

        jLabel2.setText("Soort");

        jLabel3.setText("Duur(min)");

        jLabel4.setText("Doelgroep");

        jLabel5.setText("Prijs(euro)");

        jLabel6.setText("Korte omschrijving");

        jLabel7.setText("Therapeut");

        behandelcodefield.setText("");

        jLabel8.setText("Behandelcode");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(52, 52, 52)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addComponent(jLabel8, javax.swing.GroupLayout.DEFAULT_SIZE, 77, Short.MAX_VALUE)
                        .addGap(262, 262, 262))
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(wijzigopslaan)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 188, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(layout.createSequentialGroup()
                                    .addComponent(jLabel6)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 220, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(jLabel5)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 220, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(layout.createSequentialGroup()
                                            .addComponent(jLabel4)
                                            .addGap(103, 103, 103)
                                            .addComponent(doelgroepfield, javax.swing.GroupLayout.DEFAULT_SIZE, 117, Short.MAX_VALUE))
                                        .addGroup(layout.createSequentialGroup()
                                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(jLabel1)
                                                .addComponent(jLabel2)
                                                .addComponent(jLabel3))
                                            .addGap(103, 103, 103)
                                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(duurfield, javax.swing.GroupLayout.DEFAULT_SIZE, 117, Short.MAX_VALUE)
                                                .addComponent(soortfield, javax.swing.GroupLayout.DEFAULT_SIZE, 117, Short.MAX_VALUE)
                                                .addComponent(naamfield, javax.swing.GroupLayout.DEFAULT_SIZE, 117, Short.MAX_VALUE)
                                                .addComponent(behandelcodefield, javax.swing.GroupLayout.DEFAULT_SIZE, 117, Short.MAX_VALUE)))
                                        .addGroup(layout.createSequentialGroup()
                                            .addComponent(jLabel7)
                                            .addGap(103, 103, 103)
                                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(prijsfield, javax.swing.GroupLayout.DEFAULT_SIZE, 117, Short.MAX_VALUE)
                                                .addComponent(therapeutenlijst, 0, 117, Short.MAX_VALUE)
                                                .addComponent(omschrijvingfield, javax.swing.GroupLayout.DEFAULT_SIZE, 117, Short.MAX_VALUE)
                                                .addComponent(wijzigannuleer, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 117, Short.MAX_VALUE)))))))
                        .addGap(42, 42, 42))))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(43, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel8)
                    .addComponent(behandelcodefield, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(naamfield, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel2)
                    .addComponent(soortfield, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel3)
                    .addComponent(duurfield, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel4)
                    .addComponent(doelgroepfield, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel7)
                    .addComponent(therapeutenlijst, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel5)
                    .addComponent(prijsfield, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel6)
                    .addComponent(omschrijvingfield, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(26, 26, 26)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(wijzigopslaan)
                    .addComponent(wijzigannuleer))
                .addGap(46, 46, 46))
        );

        pack();
    }
    
    
    private void initComponentsverwijder() {
    	verwijderja = new javax.swing.JButton();
		jLabel1 = new javax.swing.JLabel();
		verwijdernee = new javax.swing.JButton();
		therapienaam = new javax.swing.JLabel();

		setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);

		verwijderja.setText("Ja");
		verwijderja.setActionCommand("verwijderja");
		jLabel1.setText("Weet u zeker dat u deze therapie wilt verwijderen?");

		verwijdernee.setText("annuleer");
		verwijdernee.setActionCommand("verwijdernee");
		javax.swing.GroupLayout layout = new javax.swing.GroupLayout(
				getContentPane());
		getContentPane().setLayout(layout);
		layout.setHorizontalGroup(layout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						layout.createSequentialGroup()
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.LEADING)
												.addGroup(
														layout.createSequentialGroup()
																.addContainerGap()
																.addGroup(
																		layout.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.LEADING)
																				.addComponent(
																						jLabel1)
																				.addGroup(
																						layout.createSequentialGroup()
																								.addComponent(
																										verwijderja,
																										javax.swing.GroupLayout.PREFERRED_SIZE,
																										82,
																										javax.swing.GroupLayout.PREFERRED_SIZE)
																								.addPreferredGap(
																										javax.swing.LayoutStyle.ComponentPlacement.RELATED,
																										83,
																										Short.MAX_VALUE)
																								.addComponent(
																										verwijdernee))))
												.addGroup(
														layout.createSequentialGroup()
																.addGap(57, 57,
																		57)
																.addComponent(
																		therapienaam,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		134,
																		javax.swing.GroupLayout.PREFERRED_SIZE)))
								.addContainerGap()));
		layout.setVerticalGroup(layout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						layout.createSequentialGroup()
								.addContainerGap()
								.addComponent(therapienaam,
										javax.swing.GroupLayout.PREFERRED_SIZE,
										17,
										javax.swing.GroupLayout.PREFERRED_SIZE)
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addComponent(jLabel1)
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(verwijderja)
												.addComponent(verwijdernee))
								.addContainerGap(25, Short.MAX_VALUE)));

		pack();
    
}
    
    public void nieuwSetListener(ActionListener listener) {
		nieuwopslaan.addActionListener(listener);
		nieuwannuleer.addActionListener(listener);
	}

	public void wijzigSetListener(ActionListener listener) {
		wijzigopslaan.addActionListener(listener);
		wijzigannuleer.addActionListener(listener);
	}

	public void verwijderSetListener(ActionListener listener) {
	verwijderja.addActionListener(listener);
	verwijdernee.addActionListener(listener);
	}

	public String getBehandelfield() {
		return behandelcodefield.getText();
	}

	public void setBehandelfield(String behandelfield) {
		this.behandelcodefield.setText(behandelfield);
	}

	public String getDoelgroepfield() {
		return doelgroepfield.getText();
	}

	public void setDoelgroepfield(String doelgroepfield) {
		this.doelgroepfield.setText(doelgroepfield);
	}

	public String getDuurfield() {
		return duurfield.getText();
	}

	public void setDuurfield(String duurfield) {
		this.duurfield.setText(duurfield);
	}

	public String getNaamfield() {
		return naamfield.getText();
	}

	public void setNaamfield(String naamfield) {
		this.naamfield.setText(naamfield);
	}

	public String getOmschrijvingfield() {
		return omschrijvingfield.getText();
	}

	public void setOmschrijvingfield(String omschrijvingfield) {
		this.omschrijvingfield.setText(omschrijvingfield);
	}

	public String getPrijsfield() {
		return prijsfield.getText();
	}

	public void setPrijsfield(String prijsfield) {
		this.prijsfield.setText(prijsfield);
	}

	public String getSoortfield() {
		return soortfield.getText();
	}

	public void setSoortfield(String soortfield) {
		this.soortfield.setText(soortfield);
	}

	public String getTherapeutenlijst() {
		return therapeutenlijst.getSelectedItem().toString();
	}

	public void setTherapeutenlijst(String naam) {
		int index = 0;
		for(int x=0; x < therapeuten.length; x++){
			if( therapeuten[x].equals(naam)){
				index = x;
			}
		}
		this.therapeutenlijst.setSelectedIndex(index);
	}

    }
